<%@ page contentType="text/html;charset=UTF-8" %> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<html>
<head>
<meta charset="utf-8">
<title>WSI Projekt</title>

<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="/WSI/resources/js/dynamicselect.js"></script>
<script type="text/javascript" src="/WSI/resources/js/update.js"></script>
<script type="text/javascript" src="/WSI/resources/js/notifications.js"></script>
<script type="text/javascript" src="/WSI/resources/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/WSI/resources/js/jquery-ui-1.8.19.custom.min.js"></script>
<link href="/WSI/resources/css/admin.css" rel="stylesheet" type="text/css">
<link href="/WSI/resources/css/table.css" rel="stylesheet" type="text/css">
<link href="/WSI/resources/css/notifications.css" rel="stylesheet" type="text/css">

</head>
<body>

<div id="wrapper">
	
  <div id="tabContainer">
    <div class="tabs">
      <ul>
        <li id="main"><a id="forms" href="forms">Formularze</a></li>
        <li id="tab2"><a href="form1">Formularz 1</a></li>
        <li id="tab3"><a href="#">Podsumowanie</a></li>
        <li id="tab4"><a href="#" style="color:red">Formularz 2</a></li>       
        <li id="tab4"><a href="#">Formularz 3</a></li> 
        <li id="tab4"><a href="#">Podsumowanie</a></li> 
      </ul>
    </div>
    
    
    
    <div class="tabscontent">
   		<h2>Formularz 2</h2>
   		
		<br>
		<br>
	
		<center>
			<table class="info-table" align="center"  CELLPADDING=4>
			
			<form  action="form3" method="post">		
			
			
			<tr>	
				<td>Państwo</td> 	
				<td>		
					<select name="country" id="country">					
													         
				         <options itemValue="id"  itemLabel="name"></options>
				     </select>	
				</td> 				
			</tr>
			
			<tr>	
				<td>Miasto</td> 	
				<td>		
					<select name="city" id="city">	
					  		         
			          <options itemValue="id" itemLabel="description"></options>
			     	</select>	
				</td> 				
			</tr>

			<tr>	
				<td>				
				</td> 	
				<td>		
					<button type="input" class="buttons">Dalej</button>	
				</td> 				
			</tr>
			
			<c:if test='${not empty "${country}"}'>
			<tr>	
				<td>Wybrano Państwo				
				</td> 	
				<td>${country}</td> 				
			</tr>
			</c:if>	
			
			<c:if test='${not empty "${city}"}'>
			<tr>	
				<td>Wybrano Miasto				
				</td> 	
				<td>${city}</td> 				
			</tr>
			</c:if>		
				
			
			</table>

		</center>
    </div>
    
	<footer>
	    	<a href="<c:url value="/j_spring_security_logout" />" > Wyloguj ${username}	</a>
	</footer>

  </div>



  
</body>
</html>

